#include "stdafx.h"
#include "car.h"


car::car(void)
{
	brand="";
	year=0;
	price=0;
}

car::car(string b, int y, double p)
{
	brand = b;
	year = y;
	price = p;
}

void car::WriteToConsole()
{
	cout << "Brand: " << brand << endl ;
	cout << "Year: " << year << endl;
	cout << "Price: " << price << endl;
}

void car::ReadFromConsole()
{
	cout << "\nBrand: ";
	cin >> brand ;
	cout << "Year: ";
	cin >> year;
	cout << "Price: ";
	cin >> price;
}

car::~car(void)
{
}
